package mud.events;

import mud.Interactable;
import mud.Room;

/** Indicates that an entity has entered a room */
public class EnterEvent extends EntityEvent {

    /** the room being entered */
    private final Room room;

    /**
     * Constructor
     * @param source the entity that moved 
     * @param room the room being entered
     */
    public EnterEvent(Interactable source, Room room) {
        super(source);
        this.room = room;
    }

    /**
     * @return the exit that was taken
     */
    public Room getRoom() {
        return room;
    }
}
